home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / ola-comm.tip < prev    next >
Text File  |  1993-09-15  |  2KB  |  76 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 36.2.3, p. IV-139.
  16. % Original source in file "o3.TEX", starting line 321.
  17. \wlog{L: "ola-comm.tip" ["o3.TEX," l. 321, p. IV-139]}%
  18. % This file DOES NOT belong to format "texip."
  19. \InputD{box-mac.tip}
  20. \topskip = 10pt
  21. \vsize = 6.0in
  22. \newdimen\LeftPageShift
  23. \LeftPageShift =  0.25in
  24. \newdimen\RightPageShift
  25. \RightPageShift= -0.25in
  26. \hsize = 24pc
  27.  
  28. \newdimen\PageWidth
  29. \PageWidth = 29pc
  30.  
  31. \newdimen\DiffWidth
  32. \DiffWidth = \PageWidth
  33. \advance\DiffWidth by -\hsize
  34. \def\PageLine{\hbox to \PageWidth}
  35. \def\SetHeader #1{
  36.     \def\RightHeader {\PageLine{\it\hfil #1}}
  37.     \def\LeftHeader  {\PageLine{\it #1\hfil}}
  38. }
  39. \SetHeader{Some Header}
  40. \def\SetFooter #1{
  41.     \def\RightFooter {% 
  42.         \PageLine{% 
  43.             \hfil
  44.             \it #1% 
  45.             \hskip 0.5in
  46.             \bf \the\pageno
  47.         }% 
  48.     }
  49.     \def\LeftFooter {% 
  50.         \PageLine{% 
  51.             \bf \the\pageno
  52.             \hskip 0.5in
  53.             \it #1% 
  54.             \hfil
  55.         }% 
  56.     }
  57. }
  58. \SetFooter{Some Footer}
  59. \newinsert\FigureIns
  60. \count\FigureIns = 1000
  61. \dimen\FigureIns = \vsize
  62. \skip\FigureIns = 12pt
  63. \def\PrepareFigureBoxes #1#2#3{% 
  64.     \setbox 0 = \VboxR to #2{
  65.         \vfil
  66.         \centerline{\tt Figure~#1}
  67.         \vfil
  68.     }
  69.     \setbox 1 = \VboxR{
  70.         \hsize = \DiffWidth
  71.         \raggedright
  72.         \noindent
  73.         \strut #3
  74.     }
  75. }
  76.